<?php
function remove_bad_words($words){
    $bad_words = "shit,fuck,ɵb,ɵB";
    $array = explode(',',$bad_words);
    foreach ($array as $one) {
        $words = str_replace($one,'**',$words);
    }
    return $words;
}
?>
